package com.qf.qflivehou.controller;

import com.qf.qflivehou.pojo.respVo.ResponseData;
import com.qf.qflivehou.service.QfTeachService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Mr.Liu
 * @date 2022/1/10 22:28
 */
@RestController
@RequestMapping("/qfTeach")
public class QfTeachController {
    @Autowired
    private QfTeachService qfTeachService;

    /**
     * 查找所有老师
     * @return
     */
    @RequestMapping("/findAll")
    public ResponseData findAll(@RequestParam("page")Integer page,@RequestParam("size")Integer size){
        ResponseData responseData = qfTeachService.findAll(page,size);
        return responseData;
    }
}
